﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

/// <summary>
/// Summary description for Constants
/// </summary>
public class Constants
{
	public const int NameLength = 50;   //Author First, Middle and Last Name, Experiment name
	public const int TypeLength = 50;
	public const int IDLength = 5;
	public const int FileNameLength = 255;
	public const int ContentLength = 50000;
	public const int MemoLength = 2000;

	public enum DBTables
	{
		Experiments = 0,
		PulsePrograms = 1,
		WaveShapes = 2,
		CPDs=3,
		Scripts = 4
	}

	public static string NMRUserDataConStr
	{
		get { return ConfigurationManager.ConnectionStrings["NMRUserDataConnectionString"].ConnectionString; }
	}

	public static string NMRExperimentsConStr
	{
		get { return ConfigurationManager.ConnectionStrings["NMRExperimentsConnectionString"].ConnectionString; }
	}

	#region NMRExperiments Database Queryes
	internal static string[] Tables = new string[6] { "Null", "experiments", "pulseprograms", "waveshapes", "cpds", "scripts" };
	#endregion

	public Constants()
	{

	}
}
